package cn.wolfcode.ssm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import java.util.HashMap;

@Getter
@Setter
public class Notice {
    private Long id;

    private Employee issuer;

    private Date pubdate;

    private String title;

    private String content;

    private boolean status=false;

    public String getJson(){
        HashMap map = new HashMap();
        map.put("id",id);
        map.put("title",title);
        map.put("content",content);
        return JSON.toJSONString(map);
    }

}